package demo2;


class A<T>{
    public T data;

    public void setData(T data){
        this.data=data;
    }
}


class B extends A{

    public void setData(String data) {
        super.setData(data);
    }
}





public class Test {

    public static void main(String[] args) {
        A<String> x=new B();

        x.setData("qew");
        System.out.println(x.data);
    }



}
